<?php
class Share extends MY_Controller{
	//获取token
	function get_share_info(){
		$data = $this->user_post_data;
		if(empty($data['webview_id'])){
			echo json_encode(array("code" => 0));
		}else{
			$share_info = get_field_by_where("webview_shares", "*", "webview_id='{$data['webview_id']}' AND status = 1");
			echo json_encode(array("code" => 1, "share_info" => $share_info));
		}
	}
}